package com.xuexiang.yoyo.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class UserInfo extends User implements Serializable {


    private static final long serialVersionUID = -969510827004702886L;
    //证书id
    private Long certificateId;
    //资格证书编号
    private String certificateCode;
    //部门id
//    private Long organizationId;
    //部门
    private String organizationName;
    private String companyName;
    private Date certifiedTime;
    private String certifiedName;
    private String certificateRegType;
    private String certificateFileId;
    private Date certificateValidityTime;
    private String companyUnitCategory;
    private List<RoleMap> roleMaps = new ArrayList<>();

    public Long getCertificateId() {
        return certificateId;
    }

    public void setCertificateId(Long certificateId) {
        this.certificateId = certificateId;
    }

    public String getCertificateCode() {
        return certificateCode;
    }

    public void setCertificateCode(String certificateCode) {
        this.certificateCode = certificateCode;
    }

    public String getOrganizationName() {
        return organizationName;
    }

    public void setOrganizationName(String organizationName) {
        this.organizationName = organizationName;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public Date getCertifiedTime() {
        return certifiedTime;
    }

    public void setCertifiedTime(Date certifiedTime) {
        this.certifiedTime = certifiedTime;
    }

    public String getCertifiedName() {
        return certifiedName;
    }

    public void setCertifiedName(String certifiedName) {
        this.certifiedName = certifiedName;
    }

    public String getCertificateRegType() {
        return certificateRegType;
    }

    public void setCertificateRegType(String certificateRegType) {
        this.certificateRegType = certificateRegType;
    }

    public String getCertificateFileId() {
        return certificateFileId;
    }

    public void setCertificateFileId(String certificateFileId) {
        this.certificateFileId = certificateFileId;
    }

    public Date getCertificateValidityTime() {
        return certificateValidityTime;
    }

    public void setCertificateValidityTime(Date certificateValidityTime) {
        this.certificateValidityTime = certificateValidityTime;
    }

    public String getCompanyUnitCategory() {
        return companyUnitCategory;
    }

    public void setCompanyUnitCategory(String companyUnitCategory) {
        this.companyUnitCategory = companyUnitCategory;
    }

    public List<RoleMap> getRoleMaps() {
        return roleMaps;
    }

    public void setRoleMaps(List<RoleMap> roleMaps) {
        this.roleMaps = roleMaps;
    }

    public static class RoleMap {
        private String id;
        private String name;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }
    }

    @Override
    public String toString() {
        return "UserInfo{" +
                "certificateId=" + certificateId +
                ", certificateCode='" + certificateCode + '\'' +
                ", organizationName='" + organizationName + '\'' +
                ", companyName='" + companyName + '\'' +
                ", certifiedTime=" + certifiedTime +
                ", certifiedName='" + certifiedName + '\'' +
                ", certificateRegType='" + certificateRegType + '\'' +
                ", certificateFileId='" + certificateFileId + '\'' +
                ", certificateValidityTime=" + certificateValidityTime +
                ", companyUnitCategory='" + companyUnitCategory + '\'' +
                ", roleMaps=" + roleMaps +
                '}';
    }
}
